<!DOCTYPE html>
<html lang="zh" style="font-size: 26.7312px;"></html>
<!-- 中文语言 字体大小*/ -->
  <head>
    <meta charset="UTF-8">
    <title>工大版教师节专属贺卡</title>
    <!--自动适应屏幕，且不可缩放-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <!--样式表和js文件导入-->
    <link rel="prefetch stylesheet" href="../static/css/style.css?v=1.0.10" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="../static/css/weui.min.css">
    <!-- 在page1提前导入字体文件，减少下一页生成图片耗费的时间 -->
    <link rel="preload" as="font" href="../static/font/kaiti7000.TTF" crossorigin="anonymous">


    <script type="text/javascript" src="../static/js/weui.min.js"></script>
    <script src="../static/js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="../static/js/common.js"></script>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <!--字体大小转为px-->
    <script>
      document.documentElement.style.fontSize = document.documentElement.clientWidth * 14 / 320 + 'px';
    </script>
  </head>

  <body>
    
    <div class="input-place">
      <b>请输入写信人名字</b>
      <textarea id="writer" class="names" rows="1" type="text"></textarea>
      <br>
      <b>请输入老师称谓</b>
      <textarea id="receiver" class="names" rows="1" type="text"></textarea>
      <br>
      <b>请输入祝福语（50字以内）</b>
      
      <textarea id="words" class="bless-words" rows="3" type="text"></textarea>
      

      

    </div>
    <div class="button-place">
         <img class="button-img" onclick="jump_2()" src="../static/img/button.png" alt=""></a>
    </div>

    

  <script type="text/javascript">
    var winHeight = $(window).height();
    $("body").height(winHeight);
    var cardImageNum;
    var receiverText;
    var contentText;
    var writerText;
    function jump_2(){
      cardImageNum = GetQueryString("cardImageNum");
      receiverText = $('#receiver').val();
      contentText = $('#words').val();
      writerText = $('#writer').val();
      window.location.href = ("page2.html?cardImageNum="+cardImageNum+"&receiverText="+receiverText+"&contentText="+contentText+"&writerText="+writerText);
    }
    // 用于在加载时从url中获取参数
    function GetQueryString(name) {
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
      var r = window.location.search.substr(1).match(reg);
      // console.log(r) // for debug
      if (r != null)
          return decodeURI(r[2]);
      return null;
    }
    // 从url中取出参数
    // 选择的贺卡样式cardImageNum，称谓receiverText，内容contentText，书写人writerText
    function getData() {
      cardImageNum = GetQueryString("cardImageNum");
      receiverText = GetQueryString("receiverText");
      contentText = GetQueryString("contentText");
      writerText = GetQueryString("writerText");
    }
  </script>
  <!-- <script text="text/javascript">
    
    var images =new Array();
    function preload(){
      for(i=0; i<preload.arguments.length;i++){
        images[i] = new Image();
        images[i].src = preload.arguments[i];
      }
    }
    // preload(
    //   "../static/font/kaiti7000.TTF"   // 直接当作图片缓存
    // )
  </script> -->






</html>